import requests

url = "https://www.allhistory.com/api/timemapNode/getTimemapNodeRecom"

payload = "{\"language\":\"cn\",\"start\":-2500,\"end\":-1200,\"x1\":76.8319538113675,\"y1\":0.45800000000021,\"x2\":0.728207577175937,\"y2\":143.5419999999985,\"type\":\"170,116,120,186,54,94,169,81,115,83,124,125\"}"
headers = {
    'Accept': 'application/json, text/plain, */*',
    '_sid': '\\WH8RJUm]WIoQ}f|QWkmPGQoQ}j|PJT4PWQlQ5L3RGT@',
    'ax': '20c0dc0ddb538714157;e48903f1828b2df8e974d225a8d5dc51e62adaa7;d1b57f2606;54b51a50b7d38cbe172303cda2cf8d0e0a94e181;1615809335501;2;8bacec0ddb53871f2b1;341a915f00f3c284a44d88ef365b4be780bdbc3a188243de2d5aa1d1fd56938a97f1b385518e878f',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.9 Safari/537.36',
    'Content-Type': 'application/json;charset=UTF-8',
    'Sec-Fetch-Site': 'same-origin',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Dest': 'empty'
}

response = requests.request("POST", url, headers=headers, data=payload)
print(response.status_code)
print(response.text.encode('utf8'))
